package com.atguigu.admin.mapper;

import com.atguigu.admin.bean.City;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

//@Mapper
public interface CityMapper {

    @Select("select * from city where id=#{id}")
    public City getCityNameById(Long id) ;

//    @Insert("insert into city(name,state,country) values(#{name},#{state},#{country})")
//    @Options(useGeneratedKeys = true,keyColumn = "id",keyProperty = "id")
    public void save(City city);
}
